tianGan_list=["甲","乙","丙","丁","戊","己","庚","辛","壬","癸"] #天干列表
diZhi_list=["子","丑","寅","卯","辰","巳","午","未","申","酉","戌","亥"] #地支列表
shengXiao_list=["鼠","牛","虎","兔","龙","蛇","马","羊","猴","鸡","狗","猪"] #生肖列表

inputYear=input("请输入年份：") #输入年份
inputYear=int(inputYear)
print(" 年份  天干地支  生肖")
for i in range(inputYear,inputYear+12):
    a = (i + 6)%10  #天干计算
    b = (i + 8)%12  #地支、生肖计算
    c1 = tianGan_list[a]
    c2 = diZhi_list[b]
    c3 = shengXiao_list[b]
    print("{}年   {}{}     {}".format(i,c1,c2,c3))#输出

    
    
